# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-io-multiplex
pkgver=1.16
pkgrel=8
pkgdesc="Perl/CPAN Module IO::Multiplex : Manage Input Output on many file handles"
arch=(any)
url="https://search.cpan.org/dist/IO-Multiplex/"
license=("GPL" "PerlArtistic")
source=("https://search.cpan.org/CPAN/authors/id/B/BB/BBB/IO-Multiplex-$pkgver.tar.gz")
md5sums=('e5541d1e9f85954b95c8735ed9b19cfa')

build() {
  cd "$srcdir"/IO-Multiplex-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/IO-Multiplex-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
